package cn.stronglink.asset.module.patrol.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.data.repository.query.Param;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.Patrol;
import cn.stronglink.asset.model.PatrolPlanTime;
import cn.stronglink.asset.module.patrol.vo.PatrolPlanSearchVo;
import cn.stronglink.asset.module.patrol.vo.PatrolPlanVo;

public interface PatrolPlanMapper {
	// 创建巡检计划
	void addPatrolPlan(PatrolPlanVo patrolPlanVo);
	// 创建巡检计划时间
	void addPatrolPlanTime(HashMap<String, Object> map);
	
	void updatePatrolPlan(PatrolPlanVo patrolPlanVo);
	
	void deletePatrolPlanTime(@Param("id")long id);
	
	void delPatrolPlanById(@Param("id") Long id);
	
	List<PatrolPlanSearchVo> queryPatrolPlanList(Pagination page,@Param("params")Map<String,Object> params);
	
	List<PatrolPlanTime> getPatrolPlanTimes(@Param("patrolPlanId")Long patrolPlanId);	
	
	List<Patrol> qryInspectToday(@Param("weekDay") int weekDay, @Param("day") int day);
	
	PatrolPlanVo qryById(@Param("id") Long id);
	
	List<PatrolPlanTime> getPotrolplanTime(@Param("planId") Long id);
}
